#ifndef UTILITYS_H
#define UTILITYS_H

struct DroneTradeDataRequestMessageField
{
    int droneId = 0;
    int tradeId = 0;
    int droneTradeId = 0;
};

struct SharedMemory
{
    volatile bool Ready;
    volatile long WriteIndex;
    DroneTradeDataRequestMessageField DataArray[0];
};
inline static const uint64_t DATA_ARRAY_MAX_LENGTH = 1048576;
inline static const uint64_t SHARED_MEMORY_SIZE = sizeof(SharedMemory) + sizeof(DroneTradeDataRequestMessageField) * DATA_ARRAY_MAX_LENGTH;

#endif